export default [
   {
     path:"/main",
     name:"main",
     component:()=>import("./main.vue"),
     redirect:'/main/movie',
     children:[   // 子路由 
        {
          path:"movie",
          name:'movie',
          component:()=>import("@/views/movie/movie.vue")
        },
        {
          path:"cinema",
          name:'cinema',
          component:()=>import("@/views/cinema/cinema.vue")
        },
        {
          path:"good",
          name:'good',
          component:()=>import("@/views/good/good.vue")
        },
        {
          path:"news",
          name:'news',
          component:()=>import("@/views/news/news.vue")
        },
        {
          path:"mine",
          name:'mine',
          component:()=>import("@/views/mine/mine.vue")
        },
        {
          path:"*",
          redirect:{
            name:"movie"
          }
        }
     ]
   }
]